package com.example.sys.calendar.dao;

import com.example.core.dao.BaseDao;
import com.example.sys.calendar.po.SysCalendar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysCalendarDao extends BaseDao<SysCalendar> {

    //@Select("select id from sys_calendar where #{time} > create_time and #{time} < end_time")
    //@Select("<script>" + "select id from sys_calendar where #{time} > create_time and #{time} < end_time and id in (select role_id from sys_element_role where element_id in ( " + " <foreach collection='authLists' separator=',' item='id'>" + " #{id} " + " </foreach> " + " ))</script>")
    public List<String> getCalendar(@Param("times") String times);
}